package com.chen.dome7fileReader;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;

public class fileReaderDome1 {
    public static void main(String[] args) {
        //目标：掌握文件字符输入流的使用
        try (
                Reader r = new FileReader("D:\\学生成绩管理系统\\javaprojectmax\\d2_file-io\\src\\fileReadertest.txt")
        ) {
            char[] bs=new char[3];
            int b;
            while ((b=r.read(bs))!=-1){
                String str=new String(bs,0,b);
                System.out.print(str);
            }
 
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
